import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

public class Test {

    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();
//        binaryTree.preOrder(root);
//        System.out.println();
//        binaryTree.inOrder(root);
//        System.out.println();
//        binaryTree.postOrder(root);
//        System.out.println("节点个数是："+binaryTree.size(root));
//        System.out.println("节点个数是："+binaryTree.size2(root));
//        System.out.println("叶子节点个数是："+binaryTree.getLeafnodeCount(root));
//        System.out.println("叶子节点个数是："+binaryTree.getLeafnodeCount2(root));
//        System.out.println("第k层结点的个数是："+binaryTree.gerKLevelNodeCount(root, 3));
//        System.out.println("最大的高度是："+binaryTree.getHeight(root));
        //层序遍历
        binaryTree.levelOrder(root);
    }
}
